<?php 
class DBUtil {
	static private $con = null;
	static function getCon(){
		$con = mysql_connect("localhost","root","");
	
		if (!$con)  {
			die('Could not connect: ' . mysql_error());
		}
		mysql_query("SET NAMES UTF8");
		mysql_select_db("msg", $con);
		return $con;
	}
}
 ?>